package org.xfy.sys.mapper;

import org.xfy.sys.domain.User;
import org.xfy.base.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xfy
 * @since 2023-11-01
 */
public interface UserMapper extends BaseMapper<User> {
    //通过手机号查询
    Long findCountByPhone(String phone);
    //通过邮箱查询
    User findOneByEmail(String email);

    User findOneByLogininfo(Long id);
}
